<?php
/**
 * Core_Data_Composeclassname
 *
 * @author adrian
 */
class Core_Data_Composeclassname implements Core_Data_Classcomposable {
    
    /**
     * compose_class_name()
     * compose class name
     * 
     * @param type $query_string
     * @return string $class_name
     */
    public function compose_class_name($query_string) {
        //echo $query_string;
        /**
         * parse the page request and other GET variables
         */
        $parsed = explode('&',$query_string);
		
	/**
	 * the page is the first element
	*/
	$page = htmlentities(array_shift($parsed));
        //echo $page;
        /**
	 * modify page to fit naming convention
	 */
	$page = ucfirst($page);
        $class_name = $page."_Controller_".$page;
        return $class_name;
    }

}
